@import "../../../styles/variable";

.main-banner {
  width: 100%;
  height: 440px;
  position: relative;

  .banner-swiper {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    .banner-swiper-item {
      width: 100%;
      height: 100%;
      position: relative;

      .banner-img {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #e3e3e3;
      }
    }
  }
  .banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    height: 20px;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    .dot-item {
      width: 24px;
      height: 6px;
      border-radius: 2px;
      background-color: @colorE7E7E7;
      margin-left: 10px;
      margin-right: 10px;
    }
    .dot-item_current {
      background-color: @colorWhite;
    }
  }
}
.banner-tips {
  width: 100%;
  height: 80px;
  background-color: @colorWhite;
  .flex(row, center, center);

  .icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
  }
  .title {
    font-size: @font28;
    line-height: 80px;
    color: @color934900;
    font-family: @fontFamilyLight;
  }
}
.section {
  background-color: @colorWhite;
  margin-top: 20px;
}
.top-section {
  height: 424px;
  .flex(row, center, center);

  .content {
    position: relative;
    width: 690px;
    height: 344px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    &:before {
      content: " ";
      position: absolute;
      left: 0;
      top: 0;
      width: 200%;
      height: 200%;
      box-sizing: border-box;
      border-top: 1Px solid @colorE5E5E5;
      border-left: 1Px solid @colorE5E5E5;
      transform-origin: 0 0;
      transform: scale(0.5);
    }
    .left {
      position: relative;
      width: 228px;
      height: 100%;
      box-sizing: border-box;
      .flex(column, center, center);
      &:before {
        content: " ";
        position: absolute;
        left: 0;
        top: 0;
        width: 200%;
        height: 200%;
        box-sizing: border-box;
        border-right: 1Px solid @colorE5E5E5;
        border-bottom: 1Px solid @colorE5E5E5;
        transform: scale(0.5);
        transform-origin: 0 0;
      }
    }
    .right {
      flex: 1;
      height: 100%;
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      .item {
        width: 50%;
        height: 172px;
        box-sizing: border-box;
        position: relative;
        .flex(column, center, center);

        &:before {
          content: " ";
          position: absolute;
          left: 0;
          top: 0;
          width: 200%;
          height: 200%;
          box-sizing: border-box;
          border-right: 1Px solid @colorE5E5E5;
          border-bottom: 1Px solid @colorE5E5E5;
          transform: scale(0.5);
          transform-origin: 0 0;
        }
      }
    }

    .content-icon {
      width: 64px;
      height: 64px;
    }
    .content-title {
      margin-top: 10px;
      font-size: @font28;
      color: @color333;
      line-height: 40px;
      font-family: @fontFamilyLight;
    }
  }
}
.normal-section_header {
  width: 100%;
  height: 104px;
  .flex(row, space-between, center);
  .title {
    font-size: @font32;
    color: @color333;
    line-height: 44px;
    margin-left: 30px;
  }
  .right {
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    .more-icon {
      margin-left: 100px;
      width: 26px;
      height: 26px;
      margin-right: 24px;
    }
  }
}
.news-section {
  width: 100%;
  height: 594px;
  display: flex;
  flex-direction: column;

  .content {
    width: 100%;
    height: 462px;
    white-space: nowrap;

    .cell-item {
      display: inline-flex;
      margin-left: 20px;
      &:first-child {
        margin-left: 30px;
      }
      &:last-child {
        margin-right: 30px;
      }
    }
  }
}
.special-section {
  display: flex;
  flex-direction: column;
  .special-content {
    display: flex;
    flex-direction: column;
    align-items: center;

    .special-item {
      width: 100%;
      height: 360px;
      background-color: @colorE5E5E5;
      &:not(:first-child) {
        margin-top: 20px;
      }
    }
  }
}
.goods-section {
  display: flex;
  flex-direction: column;
  .goods-list {
    margin-left: 30px;
    margin-right: 30px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    .goods-item {
      margin-bottom: 12px;
    }
  }
}
